package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.shop")
public class BaiduProperties {

    private String address;
    private Baidu baidu = new Baidu();

    public static class Baidu {
        private String ak;

        // Getter and Setter
        public String getAk() {
            return ak;
        }

        public void setAk(String ak) {
            this.ak = ak;
        }
    }

    // Getter and Setter for address
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    // Getter for nested Baidu config
    public Baidu getBaidu() {
        return baidu;
    }
}
